Skip to main content

Loss Functions

A Loss Function is a scoreboard that tells the model "How badly did you mess up?"

Mean Squared Error (MSE)​

Used for predicting numbers. It takes the model's guess, subtracts the real answer, and squares the difference. It heavily punishes HUGE errors, but ignores tiny ones.

Python Implementation​

Loss Functions Playground (MSE vs MAE Curves)